// Author: combacsa@kaist.ac.kr
// http://www.jungol.co.kr/prog/Hanal/hanalView.php?qs_code=139

//#define COMPILE
// 머리 좀 굴려서 출력양식 맞춰야 한다.
#ifdef COMPILE

#include <fstream>
#include <iomanip>
using namespace std;

int main() {
	ifstream in("input.txt");
	int a, b;
	in >> a >> b;
	in.close();

	int big = (a > b) ? a : b;
	big = big * 9;
	int len;
	if (big < 10) 
		len = 1;
	else if (big < 100)
		len = 2;
	else if (big < 1000)
		len = 3;
	else
		len = 4;

	ofstream out("output.txt");
	for (int i = 1; i <= 9; i++) {
		int c = 1;
		if (a > b)
			c = -1;
		int j;
		for (j = a; j != b; j += c) {
			out << j << " * " << i << " = " << setw(len) << i * j << "   ";
		}
		out << j << " * " << i << " = " << setw(len) << i * j << "   ";
		out << endl;
	}
	out.close();

	return 0;
}
#endif
